package com.huibei.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huibei.mapper.OrderMapper;
import com.huibei.pojo.Order;
import com.huibei.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class IOrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {

    @Resource
   private OrderMapper mapper;

    @Override
    public List<Map<String, Object>> getOrderList(Map map) {
        return mapper.getOrderList(map);
    }

    @Override
    public int changeInfo(Map map) {
        return mapper.changeInfo(map);
    }

    @Override
    public int changeStatus(Map map) {
        return mapper.changeStatus(map);
    }

    @Override
    public int cancelOrder(Map map) {
        return mapper.cancelOrder(map);
    }
}
